﻿@using Wicresoft.Task.Team.Entity
@model Wicresoft.Task.Team.Entity.ShelveInfo
@{
    ViewBag.Title = "CodeReview";
}
<table>
    <tbody>
        <tr class="b">
            <td class="a">
                Shelveset Name
            </td>
            <td>@Model.Name
            </td>
        </tr>
        <tr>
            <td class="a">
                Date
            </td>
            <td>@Model.CreationDate
            </td>
        </tr>
        <tr>
            <td class="a">
                Owner
            </td>
            <td>@Model.OwnerName
            </td>
        </tr>
        <tr>
            <td class="a">
                Code Reviewer
            </td>
            <td>@Model.CodeReviewer
            </td>
        </tr>
        <tr>
            <td class="a">
                WorkItem ID
            </td>
            <td>
                @for (int i = 0; i < int.Parse(ViewData["item"].ToString()); i++)
                {
                    if (i == int.Parse(ViewData["item"].ToString()) - 1)
                    {
                    <a href="http://ws-fs-01:8080/tfs/web/wi.aspx?pcguid=@ViewData["PCGuid"].ToString()&id=@ViewBag.Items[i].WorkItemId">@ViewBag.Items[i].WorkItemId</a>    @ViewBag.Items[i].Title
                    }
                    else
                    { 
                    <a href="http://ws-fs-01:8080/tfs/web/wi.aspx?pcguid=@ViewData["PCGuid"].ToString()&id=@ViewBag.Items[i].WorkItemId">@ViewBag.Items[i].WorkItemId</a>    @ViewBag.Items[i].Title <br />
                            
                    }


                }
            </td>
        </tr>
        <tr>
            <td class="a">
                Description:
            </td>
            <td>@Model.Comment
            </td>
        </tr>
        <tr>
            <td class="a">
                Pending Changes
            </td>
            <td>
                <table>
                    <tr>
                        <th>
                            File Name
                        </th>
                        <th>
                            Change Type
                        </th>
                        <th>
                            LocalOrServerFolder
                        </th>
                    </tr>
                    @for (int i = 0; i < int.Parse(ViewData["change"].ToString()); i++)
                    {
                        <tr>
                            <td>
                                @ViewBag.Changes[i].FileName
                            </td>
                            <td>
                                @ViewBag.Changes[i].ChangeType
                            </td>
                            <td>@ViewBag.Changes[i].LocalOrServerFolder
                            </td>
                        </tr>
                    }
                </table>
            </td>
        </tr>
    </tbody>
</table>
<div id="space">
</div>
@using (Html.BeginForm())
{
    <div id="footer">
        <p>
            @Html.HiddenFor(model => model.IsApproved)
            <input type="submit" value="CHECK-IN" id="Button" />
            <a href="http://www.wicresoft.com">Copyright © Wicresoft EKA 2011 版权所有</a>
        </p>
    </div>
 
}